package com.yngrp.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.jeecgframework.core.common.entity.IdEntity;
/**
 *  @Description: 工单处理实体
 *  @author  SLH
 *  @date  20160717
 */
@Entity
@Table(name = "yl_wo_process")
public class WorkProcess  extends IdEntity implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	/***关联工单实体**/
	private WorkOrder workOrder;
	
	/**操作选项**/
	private String woOperation;
	
	/**操作说明**/
	private String woOperadesc;
	
	/**处理意见**/
	private String woOpinion;
	
	/**用时**/
	private String useHours;
	
	/** 保存状态 1：已提交 0：临时保存 **/
	private String saveState;
	
	/** 处理人ID **/
	private String createBy;
	
	/** 处理人姓名 **/
	private String createRealname;
	
	/** 处理部门ID **/
	private String createDepartmentid;
	
	/** 处理部门名称 **/
	private String createDepartmentname;
	
	/** 处理时间 **/
	private Date createDatetime;
	
	/** 处理类型 **/
	private String processType;
	
	/** 处理户号 **/
	private String processCustomerNo;
	
	/** 责任人 **/
	private String responer;
	
	/** 是否考核  **/
	private String isCheck;
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "wo_id")
	public WorkOrder getWorkOrder() {
		return this.workOrder;
	}

	public void setWorkOrder(WorkOrder workOrder) {
		this.workOrder = workOrder;
	}

	@Column(name ="wo_operation")
	public String getWoOperation() {
		return woOperation;
	}

	public void setWoOperation(String woOperation) {
		this.woOperation = woOperation;
	}

	@Column(name ="wo_opera_desc")
	public String getWoOperadesc() {
		return woOperadesc;
	}

	public void setWoOperadesc(String woOperadesc) {
		this.woOperadesc = woOperadesc;
	}

	@Column(name ="wo_opinion")
	public String getWoOpinion() {
		return woOpinion;
	}

	public void setWoOpinion(String woOpinion) {
		this.woOpinion = woOpinion;
	}
	
	@Column(name ="usehours")
	public String getUseHours() {
		return useHours;
	}

	@Column(name ="save_state")
	public String getSaveState() {
		return saveState;
	}

	public void setSaveState(String saveState) {
		this.saveState = saveState;
	}

	public void setUseHours(String useHours) {
		this.useHours = useHours;
	}

	@Column(name ="create_by")
	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name ="create_realname")
	public String getCreateRealname() {
		return createRealname;
	}

	public void setCreateRealname(String createRealname) {
		this.createRealname = createRealname;
	}

	@Column(name ="create_departmentid")
	public String getCreateDepartmentid() {
		return createDepartmentid;
	}

	public void setCreateDepartmentid(String createDepartmentid) {
		this.createDepartmentid = createDepartmentid;
	}

	@Column(name ="create_departmentname")
	public String getCreateDepartmentname() {
		return createDepartmentname;
	}

	public void setCreateDepartmentname(String createDepartmentname) {
		this.createDepartmentname = createDepartmentname;
	}

	@Column(name ="create_datetime")
	public Date getCreateDatetime() {
		return createDatetime;
	}

	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	@Column(name ="process_type")
	public String getProcessType() {
		return processType;
	}

	public void setProcessType(String processType) {
		this.processType = processType;
	}

	@Column(name ="process_customerno")
	public String getProcessCustomerNo() {
		return processCustomerNo;
	}

	public void setProcessCustomerNo(String processCustomerNo) {
		this.processCustomerNo = processCustomerNo;
	}

	@Column(name ="responer")
	public String getResponer() {
		return responer;
	}

	public void setResponer(String responer) {
		this.responer = responer;
	}

	@Column(name ="ischeck")
	public String getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(String isCheck) {
		this.isCheck = isCheck;
	}

}
